import {Component} from '@angular/core';
import {IonicPage, NavController} from 'ionic-angular';
import {BookPage} from "../book/book";
import {ImportantThingsPage} from "../important-things/important-things";
import {AnniversaryPage} from "../anniversary/anniversary";
import {FamilyTreePage} from "../family-tree/family-tree";


/**
 * Generated class for the TabsPage tabs.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-tabs',
  templateUrl: 'tabs.html'
})
export class TabsPage {
  rootItems: any

  constructor(public navCtrl: NavController) {
    this.rootItems = [
      {
        name: BookPage,
        title: '家庭收支',
        icon: 'book'
      },
      {
        name: ImportantThingsPage,
        title: '大事记',
        icon: 'bookmarks'
      },
      {
        name: AnniversaryPage,
        title: '纪念日',
        icon: 'calendar'
      },
      {
        name: FamilyTreePage,
        title: '家谱',
        icon: 'people'
      },
    ]
  }

}
